// 通知公告
<template>
  <div class="inform-state">
    <!-- 头部导航栏 -->
    <navigation-bar>
      <template>
        <img src="@/assets/img/logo.svg" alt />
      </template>
    </navigation-bar>
    <!-- 通知公告头部 -->
    <public-header :imgUrl="backgroundImg">
      <h1>通知公告</h1>
      <p>首页/ 通知公告</p>
    </public-header>

    <!-- 动态详情 -->
    <div class="state">
      <div class="left">
        <h6 class="title">新闻动态</h6>
        <ul>
          <li>
            <router-link to="/informDetails">
              <div class="data">
                <h6>12</h6>
                <p>2020-05</p>
              </div>
              <div class="text">
                <h5>火热申请中 | 结构部件目录新升级，在线申请，免费包邮！</h5>
                <p>500多家中外品牌商参展，现场演绎国际前沿的自动化产品技术和行业解决方案</p>
              </div>
            </router-link>
          </li>

          <li>
            <router-link to="/informDetails">
              <div class="data">
                <h6>12</h6>
                <p>2020-05</p>
              </div>
              <div class="text">
                <h5>火热申请中 | 结构部件目录新升级，在线申请，免费包邮！</h5>
                <p>500多家中外品牌商参展，现场演绎国际前沿的自动化产品技术和行业解决方案</p>
              </div>
            </router-link>
          </li>
          <li>
            <router-link to="/informDetails">
              <div class="data">
                <h6>12</h6>
                <p>2020-05</p>
              </div>
              <div class="text">
                <h5>火热申请中 | 结构部件目录新升级，在线申请，免费包邮！</h5>
                <p>500多家中外品牌商参展，现场演绎国际前沿的自动化产品技术和行业解决方案</p>
              </div>
            </router-link>
          </li>
        </ul>
      </div>
      <div class="right">
        <h6 class="title">推荐阅读</h6>
        <router-link to="/informDetails">
          <img src="@/assets/img/新闻动态.jpg" />
          <p>2020年5月28日上午，知识为主题宣传“安全乘梯”知识为，龙市……</p>
        </router-link>

        <router-link to="/informDetails">
          <img src="@/assets/img/项目案例1.png" />
          <p>2020年5月28日上午，知识为主题宣传“安全乘梯”知识为，龙市……</p>
        </router-link>
      </div>
    </div>

    <!-- 引入页脚 -->
    <footer-link></footer-link>
  </div>
</template>
<script>
export default {
  name: "InformState",
  data() {
    return {
      backgroundImg: require("@/assets/img/通知公告.jpg") //头部背景图片地址
    };
  }
};
</script>
<style lang='scss' scoped>
.inform-state {
  width: 100%;
  color: black;
  .state {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    padding: 40px 200px 100px 200px;
    .left {
      width: 65%;
      // background-color: burlywood;
      ul {
        width: 100%;
        li {
          position: relative;
          margin-top: 50px;
          a {
            &:hover {
              .data {
                background-color: #4f7bd9;
              }
              .text {
                h5 {
                  
                  color: #4f7bd9;
                }
              }
            }
            display: flex;
            align-items: center;
            .data {
                transition: all .5s;
              width: 10%;
              height: 75px;
              display: flex;
              flex-direction: column;
              justify-content: center;
              align-items: center;
              color: black;
              background-color: #f5f5f5;

              h6 {
                font-size: 30px;
              }
              p {
                font-size: 12px;
              }
            }
            .text {
              display: flex;
              justify-content: left;
              flex-direction: column;
              width: 80%;
              box-sizing: border-box;
              position: relative;
              padding: 0 100px 50px 20px;
              h5 {
                transition: all .5s;
                font-size: 15px;
                color: #4a4a4a;
              }
              p {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 12px;
                color: #666;
                margin-top: 3px;
              }
            }
          }

          &:first-child {
            margin-top: 20px;
          }
          &::before {
            position: absolute;
            bottom: -24px;
            left: 62px;
            content: "";
            height: 1px;
            width: 415px;
            background-color: #eeeeee;
          }
        }
      }
    }
    .right {
      padding-left: 50px;
      width: 35%;
      a {
        display: block;
        font-size: 14px;
        color: #666666;
        margin-top: 20px;
        img {
          width: 236px;
          height: 133px;
        }
        p {
          width: 236px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          line-height: 50px;
          border-bottom: 1px solid #e7e7e7;
        }
      }
    }
    .title {
      font-size: 24px;
    }
  }
}
</style>